<?php


/*
 * Created on Jul 8, 2009
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
?>
<?php


class Model_link2node extends Model {
	var $_tbl_name;

	function Model_link2node() {
		// Call the Model constructor
		parent :: Model();
		$this->_tbl_name = "link2node";
	}

	function find($id) {
		$sql = "SELECT * FROM {$this->_tbl_name} WHERE id=$id";
		$query = $this->db->query($sql);

		if ($query->num_rows() > 0) {
			return $query->first_row('array');
		}
		return null;
	}
}
?>